import Https from '@/utils/https'

// 左侧分组
const queryGetApiGroupReq = (params) => Https.get('/api/v1/apiMarket/getApiGroup', params)

// 申请使用
const queryApplyApiByIdReq = (params) => Https.post('/api/v1/apiMarket/applyApiById', params, { json: false, needCode: true })

// 测试api
const queryTestApiReq = (params) => Https.post('/api/v1/apiMarket/testApi', params, { needCode: true, json: false })

// 获取api测试信息
const queryGetApiTestInfoReq = (params) => Https.get('/api/v1/apiMarket/getApiTestInfo', params, { needCode: true })

const queryLogReq = (params) => Https.get('/api/v1/apiMarket/log', params, { needCode: true })

export {
  queryGetApiGroupReq, queryApplyApiByIdReq, queryTestApiReq, queryGetApiTestInfoReq, queryLogReq,
}
